added TestNewPIndex()