Tests for TCP connector