Expose a useful delay() utility to test scripts
Avoid potential race between test script and federation of m.presence EDUs by using await/repeat instead of check