finished query tests