codequality on treelib
add namefunc test