Test added for 'findnexttree' method.