tests: waitUntilPassed