Added RulesAnd test case.