created test for binary search tree, and fixed bugs resulting