GetEmitOutput function and testfiles

`getNormalizedPathFromPathComponents`