test tree array