GetEmitOutput function and testfiles

Fixed spacing