Better test coverage. Md5 bugfix