Added read/write test for TCP.