Simplify core.Sha1 literals in its tests
Add method core.Sha1.Compare and tests