Created test for TreeNode#AsJson