added tests for send/recieve