added a weitFor() test helper