Added tests for EventManager