Test query search ordre

Test that the order comes out as expected when doing a query