Checksum computation and tests