diff --git a/test/io/container/CMakeLists.txt b/test/io/container/CMakeLists.txt
index fd7a6fde772ad55a612522e5721a6f4e3eb8c372..92b788a39a6e51c4fc57dbc709a91294e252bab4 100644
--- a/test/io/container/CMakeLists.txt
+++ b/test/io/container/CMakeLists.txt
@@ -1,5 +1,4 @@
-add_dumux_test(test_container_io test_container_io test_container_io.cc
-  ${CMAKE_CURRENT_BINARY_DIR}/test_container_io)
+dune_add_test(SOURCES test_container_io.cc)
 
 #install sources
 install(FILES
diff --git a/test/io/gnuplotinterface/CMakeLists.txt b/test/io/gnuplotinterface/CMakeLists.txt
index 65e5411b577cbee0e051ad20ab827987ca8b7a34..9dadc24d6480a6852a2cc7878629e9300c5f4d2d 100644
--- a/test/io/gnuplotinterface/CMakeLists.txt
+++ b/test/io/gnuplotinterface/CMakeLists.txt
@@ -1,6 +1,5 @@
 file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/output")
-add_dumux_test(test_gnuplotinterface test_gnuplotinterface test_gnuplotinterface.cc
-  ${CMAKE_CURRENT_BINARY_DIR}/test_gnuplotinterface)
+dune_add_test(SOURCES test_gnuplotinterface.cc)
 
 #install sources
 install(FILES