Add tests for "events" module