diff --git a/test/testAll.m b/test/testAll.m
index a941211789b95129bdebd6743aa119275c20c1ed..3ddd77185ea60b57d46ddcceaa351494c62d18d6 100644
--- a/test/testAll.m
+++ b/test/testAll.m
@@ -1,5 +1,5 @@
 % include the root folder and all subfolders.
-addpath(genpath([pwd filesep 'test']));
+addpath(genpath(pwd));
 
 try
 
diff --git a/test/verified/test_myName.m b/test/verified/test_myName.m
index 4a0fb4c94d48c9e6fbf8e5024d19f9aa83972a96..67f4f457b2b925cd8396a0655d04b5ea0de3671c 100644
--- a/test/verified/test_myName.m
+++ b/test/verified/test_myName.m
@@ -1,7 +1,5 @@
 % Test file
 
-addpath(genpath('../src/'))  % add this folder and all subfolders to the path
-
 c = addTwoNumbers_myName(1, 2)
 
 % test if the addition function works as expected