add test case to test setQueries