tree: add a failing test for unsorted input We do not currently use the sorted version of this input in the function, which means we produce bad results.