Improve Domain and IPv4Address tests.