tests for scheduler