Test for binaryTree.search. Fixed some bugs.