add unit test for bug w.r.t. use of get_checksum_for for patch files
fix use of get_checksum_for for patch files
Merge pull request #777 from boegel/get_checksum_for_bugfix

fix use of get_checksum_for for patch files