TestPIndexMatchesPlan()