Store branch tests

Previously we used the tags var to store our result and then set it to the object. Now since we store the result on the Leaf object directly we do not need to use the intermediate tags storage and then later set it.