Make unresolvable host test more robust