Convert scheduler tests to integration tests

This needs to be a constant-time compare (check out the controller for an example).