Document merge + tests.