Tcp write after connect

Should address #1432
Actually, on the entire test s/assert/ASSERT/g