test(tree): test error wrapping from graph.add