tests for get_rule_for_parents and revised tests for _update_rule_for_parents