Adding tree traversal test.