Added a tests for setEventData