added new test for query.