MDL-40915 events: Add unit tests for the events