completed the 2nd test for query.