fix tree test