Fix schedules test