(bug 65013) Test QueryGenerator.limit

Change-Id: I1df4c4660b47d2a43b5e6dffe76666204161d4d5
Merge "(bug 65013) Test QueryGenerator.limit"