Adds a test for invalid query statement.
Authored by: jplang 2011-12-04
Parent: [r8073]
Child: [r8075]