Merging #2229 polyglot tests should wait for index

Putting an index_wait in wherever we create an index then try to use it. The review for this 1514.