fix unittest failure of DomainResolver.Invalid

fix unittest failure of DomainResolver.Invalid