Add a unittest to cover one case of rescheduling events.