Tests - Added unit tests for the merge function.