fix a small bug that would make the TCP tests always fail