Added some tests for Scheduler.