Fix test-event-scheduler test. Previous changes modified IsBefore() to
mean strictly before. Introduced IsSame() method, used by the
event-scheduler.