Add integer query tests