Write first test of reading from a socket