Add a test for removing event handlers