refactored the merge operator test