Added waitLoad support to test app.