#refactored and add logical test to ScheduleAdvisorTest