Extracted merge functionality from the PLS-SEM test module and move it to the corresponding module in the "prepare" directory.