diff --git a/Tests/MathLib/TestGlobalMatrixInterface.cpp b/Tests/MathLib/TestGlobalMatrixInterface.cpp
index 845bbc3343eefb47cc92523fd7bb802736219b69..4a57cbc7cd98a0a35a370f7f720f77a38452e76b 100644
--- a/Tests/MathLib/TestGlobalMatrixInterface.cpp
+++ b/Tests/MathLib/TestGlobalMatrixInterface.cpp
@@ -42,7 +42,7 @@ void checkGlobalMatrixInterface(T_MATRIX &m)
     m.add(0, 0, 1.0);
     m.setZero();
 
-    MathLib::DenseMatrix<double, short> local_m(2,2, 1.0);
+    MathLib::DenseMatrix<double, short> local_m(2, 2, 1.0);
     std::vector<std::size_t> vec_pos(2);
     vec_pos[0] = 1;
     vec_pos[1] = 3;
@@ -70,7 +70,7 @@ void checkGlobalMatrixInterfaceMPI(T_MATRIX &m, T_VECTOR &v)
     ASSERT_EQ(6u, gathered_cols);
 
     // Add entries
-    MathLib::DenseMatrix<double> loc_m(2);
+    MathLib::DenseMatrix<double, short> loc_m(2);
     loc_m(0, 0) = 1.;
     loc_m(0, 1) = 2.;
     loc_m(1, 0) = 3.;