fixing sha1 helper calculate sha1 test case