test-sha1: fix segfault