diff --git a/tests/src/testVariableMapper.cpp b/tests/src/testVariableMapper.cpp
index dd6be445f59f1958453e5a052dd2526ff6baf3db..5e8e82516e089d5e78a60dfcb35b4c51a363e2cd 100644
--- a/tests/src/testVariableMapper.cpp
+++ b/tests/src/testVariableMapper.cpp
@@ -239,3 +239,13 @@ BOOST_AUTO_TEST_CASE( testUnkownLocationNode ){
               << e.what() << std::endl;
   }
 }
+
+BOOST_AUTO_TEST_CASE( testLocationTurnOffOn ){
+  testXmlParsing("variableTreeXml/locationTurnOffOn.xml", { {"/A/a/di",  {"DUMMY_LOCATION","a.di",false}},
+	                                                    {"/A/a/do",  {"DUMMY_LOCATION","A.a.do"}},
+                                                            {"/A/b",     {"DUMMY_LOCATION","b",false}},
+                                                            {"/B/a/dr",  {"ANOTHER_LOCATION","a.dr",false}},
+                                                            {"/B/c/de",  {"ANOTHER_LOCATION","c.de",false}},
+	                                                    {"/B/c/gne", {"ANOTHER_LOCATION","B.c.gne"}},
+                                                       });
+}