Can we skip these tests and let inet_pton do them instead? That would be nice if we get the same functionality with less code.