GetEmitOutput function and testfiles

Too verbose, go with `Success`, `SyntaxError`, `CompilerOptionsError`, `DeclarationEmitError`.