fix test() in poly and gpx and import format order