Test for creating an event