Added tests to the EventManager