Convert scheduler tests to integration tests

Yes the scheduler is a better place for it: 16ae41d