UDP tests use mock socket. TCP tests for reconnection logic.