correct test_sch to deal with midnight