Fix checksum tool and pass all sum tests in test-checksum-tool.sh