Added unit tests for EventObject