Basic test for model query.