added some test for event model