Added mock helpers to RulesTestBase.