Refactor SQL validator testing infrastructure so SQL parser is configurable.

 Add a test for validating queries with bracket syntax for quoting ids.