Add tests, require Digest for testing