Added unit tests for Scheduler.