Added tests for rule registration