tests: adjusted position of query time restriction clause