Updated test case for #33.
Fixed an issue where there were still some bytes left in the socket, causing every next command to fail.