tests for get_rule_for_states and set_rule_for_states