added nil tests to TestSamePlanPIndexes()