Added tests to tree data converter