introduced segment_infos_per_commit
Added unit test with very long terms