diff --git a/tests/ep/linearmodel.mod b/tests/ep/linearmodel.mod
index 5cf8a7a310938d6cf45467d5a6520d2724670899..f773e651cdc81576fb3f740b615b54954ec320a8 100644
--- a/tests/ep/linearmodel.mod
+++ b/tests/ep/linearmodel.mod
@@ -40,6 +40,6 @@ options_.ep.order = 1;
 options_.ep.nnodes = 3;
 sts = extended_path([],100);
 
-if max(max(abs(ts-sts))) > 1e-12
-   error('extended path algorithm fails in ./tests/ep/linear.mod')
+if max(max(abs(ts.data-sts.data))) > 1e-12
+   error('extended path algorithm fails in ./tests/ep/linearmodel.mod')
 end