Improve Path compiler specifications; Port QTest to Catch

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