license & more query tests