[TCP]: Move send test logic out of net/tcp.h