Adding waitFor tests