tests for deleting a rule