[TEST] use a default host name if localAddress is not available

Closes #7409