Factor out host connection setup into a fixture.