unittests now use specd format, which is nice.
Detailed test of the tree build
remove unnecessary --
better edge case handling, tree walk and associated unit tests.