test invalid rule_type