Added tests for rules