MD5 digest compatibility tests and fixes