Add ioloop test; correct client ip fetching