Add test for extra_data option, injecting a rule.