Making rule class an abstract class and deleting its test.