create test for QueryResult