PERL-371 test host localhost:port handled correctly