refactoring LightSchedulerTest.