Convert scheduler tests to integration tests