diff --git a/src/Grid/tests/grid_dist_id_unit_test.cpp b/src/Grid/tests/grid_dist_id_unit_test.cpp
index 8d8186ea9b3ca4db3d5699d1fc16fd0350d38052..1be88e3f709622f78fe7748b5169508629d0006b 100644
--- a/src/Grid/tests/grid_dist_id_unit_test.cpp
+++ b/src/Grid/tests/grid_dist_id_unit_test.cpp
@@ -100,12 +100,16 @@ BOOST_AUTO_TEST_CASE( grid_dist_id_domain_grid_unit_converter3D_test)
 		auto it = g_dist.getDomainIterator();
 
 		auto key = it.get();
+		auto gkey = it.getGKey(key);
 
 		auto pos = g_dist.getPos(key);
 
-		BOOST_REQUIRE_CLOSE(pos.get(0),-0.3f,0.0001);
-		BOOST_REQUIRE_CLOSE(pos.get(1),-0.3f,0.0001);
-		BOOST_REQUIRE_CLOSE(pos.get(2),-0.3f,0.0001);
+		if (gkey.get(0) == 0 && gkey.get(1) == 0 && gkey.get(2) == 0)
+		{
+			BOOST_REQUIRE_CLOSE(pos.get(0),-0.3f,0.0001);
+			BOOST_REQUIRE_CLOSE(pos.get(1),-0.3f,0.0001);
+			BOOST_REQUIRE_CLOSE(pos.get(2),-0.3f,0.0001);
+		}
 
 		bool check = false;