test for advertised host name being a string rather than non-nil