Add flag.go test code, and add tcpecho.go test code