Tests: add tests for merged ranges.