Add compare_digest test