add tree unittest