--- a/tests/dates/dates.sh
+++ b/tests/dates/dates.sh
@@ -14,7 +14,7 @@
 # one result: 2008 file
 recollq date:2007-01-01/2010-02-09 datetest
 # 2 results : files from 10 and 11 march 2010
-recollq date:2010-03-10/P10D datetest
+recollq -S mtime date:2010-03-10/P10D datetest
 # 0 result: no such term
 recollq date:2010-03-10/P10D datetestnotermsmatch
 ) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout