Simplifying RulesOrTest and fixing typo.