addTree mock