added test for event