gpx fix: ugly copy paste bug, now with test