added tests to tree