Test the merge functions.