Tree construction tests