add unit tests for Events