preparation of treebuilder tests

using string constants to get the real filemode