diff --git a/test/decoupled/2p/CMakeLists.txt b/test/decoupled/2p/CMakeLists.txt
index 94676cf12e8192ddf8d89212e873ddea206cd37e..b3f17e8d9251d6920ff97a20fb469feb54ab6aa3 100644
--- a/test/decoupled/2p/CMakeLists.txt
+++ b/test/decoupled/2p/CMakeLists.txt
@@ -20,6 +20,8 @@ add_test(test_impesadaptive
 
 add_executable("test_impeswithamg" EXCLUDE_FROM_ALL test_impeswithamg.cc)
 if(MPI_FOUND)
+  add_dune_superlu_flags(test_impeswithamg)
+  add_dune_mpi_flags(test_impeswithamg)
   add_test(test_impeswithamg
     ${CMAKE_SOURCE_DIR}/bin/runTest.sh
     ${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
diff --git a/test/implicit/richards/CMakeLists.txt b/test/implicit/richards/CMakeLists.txt
index e6b15577a670bd87afae9355ce8b0f32eeea86d0..e87e1d6f7cc4c4a1137a84d3dc3f78b899794198 100644
--- a/test/implicit/richards/CMakeLists.txt
+++ b/test/implicit/richards/CMakeLists.txt
@@ -4,6 +4,7 @@ add_dune_ug_flags(test_boxrichards)
 if(MPI_CXX_FOUND)
     # tell UG that the model is parallelized
   add_definitions(-DModelP)
+  add_dune_mpi_flags(test_boxrichards)
   add_test(test_boxrichards
     ${CMAKE_SOURCE_DIR}/bin/runTest.sh
     ${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py