unit tests for pnorm.c