Added methods getEventData and getEventType. Added tests.