Fixed spec in schedule.toArray()