model query tests