Convert QTest cases to Catch

* Adds specifications for the syntax query language
* Vastly improves the test coverage
* Add optimizations for Qt 5.4+