Improved scheduler tests.