testing binary search trees