GetEmitOutput function and testfiles

what is the purpose of using function here instead of value ?