postgis: better query test