Added tests for TreeNode#ValueAsNumber