Fixed problem with Digest.equals and added tests for it