Modified SequentialSchedulerTest JUnit test