added test for calculate checksum