Make TestHostConnection more robust.