Fixes the wait() test helper which was broken since the introduction of the async router
Merge pull request #4347 from Herriau/fix_wait_testing_helper_async_router

Fixes the wait() test helper which was broken since the introduction of the async router