spatial query test