add a test for event.