added integration test for newQuery with many-relation and shallow filter