Added `Future<String> wait(String state)` method to `Schedule` and updated the tests to use it.
tests to use this instead of their fo

tests to use this instead of their former utility functnt

This addition is motivated my new use cases outside of testing.