Tests does not pass - new version is not working correctly. tree.equal method is order-sensitive - the same thre but with different node-order is marked as different