PHOENIX-933 Local index support to Phoenix

This code looks familiar. If it matches original (I think from QueryIT), can you move it into the base test class instead of copy/paste?