Query Rewriter Tests

Add test from issue #190, plus a couple more, to demonstrate rewriter broken by certain comments.
Query Rewriter

Properly handle comments in queries.