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