Add unit test for merging multiple documents.

Signed-off-by: goneall <gary@sourceauditor.com>