Fix intermittent timing-related failure in ScheduleControllerTest