diff --git a/tests/cppaql/approximateMatching.cpp b/tests/cppaql/approximateMatching.cpp
index 4d7b61e7be1ce1efbddee54ca3661a3704528f1e..282754bd809244b023880bebfc1ecf8f568d4179 100644
--- a/tests/cppaql/approximateMatching.cpp
+++ b/tests/cppaql/approximateMatching.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/arbologyTest.cpp b/tests/cppaql/arbologyTest.cpp
index 07774381ef295571de23379a0ba24c46b9bf9cae..398b57897e199979c7b22c76d95b3447544daaaa 100644
--- a/tests/cppaql/arbologyTest.cpp
+++ b/tests/cppaql/arbologyTest.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/conversionsTest.cpp b/tests/cppaql/conversionsTest.cpp
index 3f48ad2d1f06a9eadc0b4552b12193e4e4baff65..fb557a33f0539f095995de8d1392a123d665bcd2 100644
--- a/tests/cppaql/conversionsTest.cpp
+++ b/tests/cppaql/conversionsTest.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/conversionsTest2.cpp b/tests/cppaql/conversionsTest2.cpp
index cb68b44a8b7de72254ffdb9bdd824bbce6b05026..7750d34a22b5a7ffe136e98f26b232a3bdca9b79 100644
--- a/tests/cppaql/conversionsTest2.cpp
+++ b/tests/cppaql/conversionsTest2.cpp
@@ -1,5 +1,6 @@
 #include <alib/vector>
 #include <catch2/catch.hpp>
+#include <sstream>
 
 #include "testing/TestFiles.hpp"
 #include "testing/TimeoutAqlTest.hpp"
diff --git a/tests/cppaql/exactMatching.cpp b/tests/cppaql/exactMatching.cpp
index a1bbf020e1fa175df053c749d0ed7570cdfa4fa6..57badeccbe035925b31e1be59291323f3b9e3224 100644
--- a/tests/cppaql/exactMatching.cpp
+++ b/tests/cppaql/exactMatching.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/minimizeTest.cpp b/tests/cppaql/minimizeTest.cpp
index af307866ad0a3676db466bdd5a47ff1322f5b25b..572c348a478dbe5d586b83b1fc07b9e3ef6e7158 100644
--- a/tests/cppaql/minimizeTest.cpp
+++ b/tests/cppaql/minimizeTest.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/regexpOptimizeTest.cpp b/tests/cppaql/regexpOptimizeTest.cpp
index 2e73a7b0fc453f5563ab5996fe4015e6bc28aea9..7d5c4e8539f449eddc1f6b65a74b7acb62ac2d3e 100644
--- a/tests/cppaql/regexpOptimizeTest.cpp
+++ b/tests/cppaql/regexpOptimizeTest.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
diff --git a/tests/cppaql/treeNotationTest.cpp b/tests/cppaql/treeNotationTest.cpp
index 096c3cb2e877e20e2d7e8f3e7f2c446ec6e243ad..3056c6fe0b302faddd13bb3a7e2fd16dcfb3735c 100644
--- a/tests/cppaql/treeNotationTest.cpp
+++ b/tests/cppaql/treeNotationTest.cpp
@@ -1,5 +1,6 @@
 #include <catch2/catch.hpp>
 #include <alib/vector>
+#include <sstream>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"