Tests: fix treenode statistics test