Add a basic test for the Query endpoint