Adds test coverage for the merge helper method