added tests for event model