add test case for send and recv