Improve query tests
Add support for the details parameter (Orion 0.14.0)