added a test for rules