tree api test