Harden test fix for machines that to not define 'localhost'.