Tree: Add tests to cover the case where an errorFn handles destroyed node errors.