Added unit test for Doctrine Query Builder

I had an issue, and wasn't sure whether it was a problem of the `DoctrineORMAdapter` with `QueryBuilder` so I added a unit test (since there was none before). Turns out, everything is fine, but there is no harm in adding the test.