Finished query tests