Fix a test in test_twisted.

With the new top-level domains, x.y.z became a valid domain name.  The
IETF has set stated that .invalid may not be installed as a top-level
domain, so let's use x.y.invalid instead.