Fix test_conn tests wrt _dirty / _sock