GetEmitOutput function and testfiles

also, it should be FileName, not Filename