Added a test for unregisterable custom event handler.