GetEmitOutput function and testfiles

newline