Add nrm2 unit tests, fix #16