added tests to Scheduler