fix missing `orderBy` on test query