tests for event object creation