Fixes to checksum calculation/verification, adding bit of testing