added checksum calculation according to RFC 1071 for testing purposes, added unit test framework for checksum testing