Unit tests for binarytree.py.