Added test for event model.