Testing tcp server code