testing some cases for TrinaryTree