Add binary funcs

this pr adds recv and send functions for md5hash type and fixes the test suite.