test-sha1: add a binary output mode