GetEmitOutput function and testfiles

spelling