diff --git a/CMakeModules/testing_cpp.cmake b/CMakeModules/testing_cpp.cmake
index 0c000601b4f9a70f7049e2878c85c8bad6c0c158..91678d8aebadb70abea437ac45375091caca54fc 100644
--- a/CMakeModules/testing_cpp.cmake
+++ b/CMakeModules/testing_cpp.cmake
@@ -114,7 +114,7 @@ function(gtest target test_source_files linktarget)
             endif ()
             SETUP_TARGET_FOR_COVERAGE(NAME coverage-${target} EXECUTABLE test-${target} ${target})
             add_test(NAME coveragetest-${target}
-                    COMMAND ${CMAKE_MODULE_PATH}/check_test.sh
+                    COMMAND ${PROJECT_SOURCE_DIR}/CMakeModules/check_test.sh
                     coverage-${target} ${CMAKE_BINARY_DIR} ${ASAPO_MINIMUM_COVERAGE})
             set_tests_properties(coveragetest-${target} PROPERTIES LABELS "coverage;all")
             message(STATUS "Added test 'test-${target}-coverage'")
diff --git a/CMakeModules/testing_go.cmake b/CMakeModules/testing_go.cmake
index f130ab796ec0d94aeebffc94252ba628ea55b4aa..465736a5db40cbfb1146b1e8c66779c27b603b2c 100644
--- a/CMakeModules/testing_go.cmake
+++ b/CMakeModules/testing_go.cmake
@@ -16,7 +16,7 @@ function(gotest target source_dir test_source_files)
         message(STATUS "Added test 'test-${target}'")
         if (CMAKE_COMPILER_IS_GNUCXX)
         add_test(NAME coveragetest-${target}
-                        COMMAND ${CMAKE_MODULE_PATH}/coverage_go.sh
+                        COMMAND ${PROJECT_SOURCE_DIR}/CMakeModules/coverage_go.sh
                         ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ASAPO_MINIMUM_COVERAGE} ${gopath}
                         WORKING_DIRECTORY ${source_dir})
         set_tests_properties(coveragetest-${target} PROPERTIES LABELS "coverage;all")