waitFor - call the test before setInteval runs

Change for Issue #791. Please review. This change increases performance of our UI tests by a noticeable amount.