YZ index creation now deterministic

Based on the feedback from @coderoshi I went back and changed to
using a polling mechnism to wait for the YZ index to be created for
the various tests that need it.