Implement the tcp_test