Fix SchedulingPattern unit test