adding test for query