Change from Digest::SHA1 to Digest. Adjust tests.