added unit test for event timing