beego: fix the tree for addtree & add testcase