basic test for sending/recv