code coverage for mergeContext