tcp server and test