diff --git a/source/armarx/navigation/algorithms/test/algorithms_spfa_test.cpp b/source/armarx/navigation/algorithms/test/algorithms_spfa_test.cpp
index 858dfa16c6e6a547665d34f5ef872a9cd3f3ae1e..6a0db3ebbad1f031938a2272532af836f068c87f 100644
--- a/source/armarx/navigation/algorithms/test/algorithms_spfa_test.cpp
+++ b/source/armarx/navigation/algorithms/test/algorithms_spfa_test.cpp
@@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(testGrid)
     Eigen::Vector2f start{1500, 0};
 
     const auto vertex = costmap.toVertex(start);
-    const auto position = costmap.toPosition(vertex.index);
+    const auto position = costmap.toPositionGlobal(vertex.index);
 
     BOOST_CHECK_LT(std::abs(start.x() - position.x()), cellSize);
     BOOST_CHECK_LT(std::abs(start.y() - position.y()), cellSize);