Speeding up headless_wait in tests.