Fix race in IndexLookupTest with getting the test index online