add unit tests for checksum functionality