test proximity query