mergeFunction.isDuplicate() tests, Made test base code smaller