Add merge task and tests.