Added some tests for document join, group by, ANY