Added a tree traversal test.