GetEmitOutput function and testfiles

getDefaultLibFileName: host.getDefaultLifFilename