integration testing for event create and javascript for event creation