Correct MD5 implementation. Update tests to check for correct MD5 value.

CLA has been emailed.

cc/@alkemist