add query request and test
implement setQuery function