CC-5651: Unit Test the Scheduler

Added 2 unit tests