create query intergration test
update integration tests for query
more query tests