Basic unittest for scheduler