GetEmitOutput function and testfiles

So different compilerHost instance can implement the function differently depends of its usages and the function will only get execute when needed