Fix rule tests.