Test for recv (partial)

Related with https://github.com/kripken/emscripten/pull/815