Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java	(revision 16681)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java	(revision 16735)
@@ -6,4 +6,5 @@
 import java.util.Collections;
 
+import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.command.ChangeCommand;
 import org.openstreetmap.josm.command.Command;
@@ -58,5 +59,5 @@
         if (wnew.nodes.size() < 2) {
             // Empty way, delete
-            return DeleteCommand.delete(Collections.singleton(w));
+            return DeleteCommand.delete(Main.map.mapView.getEditLayer(), Collections.singleton(w));
         } else {
             return new ChangeCommand(w, wnew);
Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java	(revision 16681)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java	(revision 16735)
@@ -96,5 +96,5 @@
     public Command fixError(TestError testError)
     {
-        return DeleteCommand.delete(testError.getPrimitives());
+        return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives());
     }
 
Index: applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
===================================================================
--- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java	(revision 16681)
+++ applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java	(revision 16735)
@@ -152,5 +152,5 @@
     public Command fixError(TestError testError)
     {
-        return DeleteCommand.delete(testError.getPrimitives());
+        return DeleteCommand.delete(Main.map.mapView.getEditLayer(), testError.getPrimitives());
     }
 }
