Add new testcases for query.