unit tests for opnorm.c