test DigestInputStream