added tests for create and event