diff --git a/matlab/run_gdat_tests.m b/matlab/run_gdat_tests.m
index 31a02d141287817eb61515dacaee000237ac4f31..1f2a10079d37bf77416122dcf06dd05c2e089427 100644
--- a/matlab/run_gdat_tests.m
+++ b/matlab/run_gdat_tests.m
@@ -46,8 +46,8 @@ testspath = fullfile(tbxpath,'tests');
 
 lastwarn('','');
 
-suite_all = [matlab.unittest.TestSuite.fromClass(?fullfile(testspath,test_requestnames_tcv)),...
-             matlab.unittest.TestSuite.fromClass(?fullfile(testspath,test_tcv_get_ids))];
+suite_all = [matlab.unittest.TestSuite.fromFile(fullfile(testspath,'test_requestnames_tcv.m')),...
+             matlab.unittest.TestSuite.fromFile(fullfile(testspath,'test_tcv_get_ids.m'))];
 
 [~,s] = lastwarn();
 if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded')