Fix TestIndexingAPI unit test