Test for recv (partial)
Merge pull request #821 from caiiiycuk/recv_test

Test for recv (partial)