use the waitForLoad promise to simplify this test