update inc/tree.js
add model: tests and ut