Added testcase for Rule
Fixed phpdoc issue in the RuleTest