Add test for merging multiple ranges.