Index: trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDistanceTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDistanceTest.java	(revision 15037)
+++ trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDistanceTest.java	(revision 15038)
@@ -34,10 +34,10 @@
         Node node2 = new Node();
         Way way = new Way();
-        node1.setCoor(new LatLon(0, 0));
-        node2.setCoor(new LatLon(0, 1));
+        node1.setCoor(new LatLon(0.5, 0));
+        node2.setCoor(new LatLon(-0.5, 0));
         way.addNode(node1);
         way.addNode(node2);
 
-        WayPoint waypoint = new WayPoint(new LatLon(1, 0));
+        WayPoint waypoint = new WayPoint(new LatLon(0, 1));
 
         double distance = GpxDistance.getDistanceWay(null, waypoint);
@@ -104,7 +104,5 @@
         en = new EastNorth(0, 1);
         distance = GpxDistance.getDistanceEastNorth(en, waypoint);
-        /* 111319.49077 uses the WGS84/NAD38/GRS80 model for
-         * the distance between (0, 0) and (0, 1) */
-        assertEquals(111319.49077, distance, 0.1);
+        assertEquals(1, distance, 0.000001);
     }
 
