updated PPMUtils and fixed some tests