testing for rules