add rule tests