Add unit-test around connection establishment failure