adding unit tests for TCP/IP socket streams