better error reporting from testForAngular and waitForAngular