tests: allow use of alternative sha1 implementations