fixed #24 and added test of tcp-socket-test to test the basic functions of tcp socket