rework testAsyncViewQuery() so that it uses a CountdownLatch rather than Thread.sleep(), so this test runs much faster.