[#1666] regression host fix

our tests use the domain to do a lookup in the db. In the unit tests it was mapped to <domain>:<port> instead of domain.