Improved test for select_nbranches.
Equality redefined for TimeSeries.