diff --git a/src/@dates/copy.m b/src/@dates/copy.m
index 3454125c2a32dd9470f590ead7bfb9d0982444d7..bbb1bf9048438b2f82eb7ccff66578c0e5788259 100644
--- a/src/@dates/copy.m
+++ b/src/@dates/copy.m
@@ -8,7 +8,7 @@ function p = copy(o) % --*-- Unitary tests --*--
 % OUTPUTS
 % - p [dates]
 
-% Copyright (C) 2014-2017 Dynare Team
+% Copyright © 2014-2020 Dynare Team
 %
 % This code is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -27,23 +27,25 @@ p = dates();
 p.freq = o.freq;
 p.time = o.time;
 
+return
+
 %@test:1
-%$ % Define a dates object
-%$ o = dates('1945Q3','1944Q4');
-%$ q = dates('1945Q3','1944Q4');
-%$
-%$ % Call the tested routine.
-%$ try
-%$     p = copy(o);
-%$     t(1) = true;
-%$ catch
-%$     t(1) = false;
-%$ end
-%$
-%$ if t(1)
-%$      o.sort_();
-%$      t(2) = dassert(p, q);
-%$ end
-%$
-%$ T = all(t);
+% Define a dates object
+o = dates('1945Q3','1944Q4');
+q = dates('1945Q3','1944Q4');
+
+% Call the tested routine.
+try
+    p = copy(o);
+    t(1) = true;
+catch
+    t(1) = false;
+end
+
+if t(1)
+     o.sort_();
+     t(2) = dassert(p, q);
+end
+
+T = all(t);
 %@eof:1
\ No newline at end of file