Add unit tests for nvm_checksum.