added TestNewPIndexImpl()