Added docstring and unit tests for get_checksum().