MDL-40915 calendar: Add unit tests for the events