GetEmitOutput function and testfiles

when would we not have a writer?