Added tests for TreeRenderer.