implement queryFetch tests