Added scheduler unit test