fix bug:ip query
update test