Docstring and test for checksum_generator.