Add test for EventDispatcher