add var/is_ip with test