Added unit tests for #remove_rule (good and bad behavior).