Testing binary tree