Fix to avoid need for any sleep in the test.