Add communication tests, fix MD5 bug