wrote basic query() test