Add test for removing handler.