Working test for reading from buffered socket