Test the operator-precedence of OR/AND/NOT

This PR adds some basic tests to check if the operator precedence is correctly implemented. See phpcr/phpcr-utils#12 for additional details.

I'm not sure if it's okay to put the test in to the `$queries`-array - I'd be happy to move the tests into their own test-case if that would be a better place.