[Xml] Add unit test for parser's tree mode