tmap is a simple enough function, i am not sure it is wise to add a dependency here on test.tree.builder.  probably should just copy it.  Kind of bad either way, but I think copying is ok.