adding tests for replaceHeaderNamesWithLabels