extensive MD5 tests. fix calculation of hash for longer input data.