refactor sched test case.