Make this test more resilient to environment differences

Various platforms and .NET releases may return IPv6 loopback
address in either full or compressed form.