Add scheduler tests.