Changed encodeChecksum() to protected and added unit tests for 100% coverage