Test query stringification more thoroughly.