Test that the digest value is correct