add and test tree