added tests for createEvent, createEventForAllDay, Validator