Add test for full tree iterate query