improve test on the visit API