Added test for scheduler