Added a test for the checksum calculation.