Add python unit test for comps merging.