diff --git a/Tests/Unit/Device/SimulationAreaTest.cpp b/Tests/Unit/Device/SimulationAreaTest.cpp
index 7b5bb9578d3e0926bfad00b6163ca1cae634d149..85230aba0b8f6e0ed285f989005f376bf2e0aeeb 100644
--- a/Tests/Unit/Device/SimulationAreaTest.cpp
+++ b/Tests/Unit/Device/SimulationAreaTest.cpp
@@ -112,18 +112,15 @@ TEST(SimulationAreaTest, indexInRoi)
     detector.setRegionOfInterest(0.1, 1.1, 2.9, 3.9);
     detector.addMask(Rectangle(-0.9, 0.1, 0.9, 1.9), true);
 
-    std::vector<size_t> expectedIndexes = {1, 2, 3, 4, 5, 6, 7, 8};
     std::vector<size_t> expectedDetectorIndexes = {6, 7, 9, 10, 11, 13, 14, 15};
     std::vector<size_t> expectedRoi = {1, 2, 3, 4, 5, 6, 7, 8};
     std::vector<size_t> indexes;
     std::vector<size_t> roiIndexes;
     std::vector<size_t> detectorIndexes;
     detector.iterateOverNonMaskedPoints([&](const auto it) {
-        indexes.push_back(it.roiIndex());
         roiIndexes.push_back(it.roiIndex());
         detectorIndexes.push_back(it.detectorIndex());
     });
-    EXPECT_EQ(indexes, expectedIndexes);
     EXPECT_EQ(roiIndexes, expectedRoi);
     EXPECT_EQ(detectorIndexes, expectedDetectorIndexes);
 }