Implemented and tested TimeManager.consolidate_rests().