base query tests