Adds intermediate abstract class for rule tests.