basic back and forth test for socket connections