Add unit tests for Events.