Add test for Socket.getifaddrs.