Fix test_addrinfo script.
Add tests to Travis CI.