Adding test class for Rules