Convert scheduler tests to integration tests

It buffers the output and only shows it if verbosity is on or the test fails.