refactored the event create test