test runs again, minor fixes to tree algos