Added unit test for the event manager