GetEmitOutput function and testfiles

You need to either check if you can actually copy over a key/value with [`Object.prototype.hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) or you can use `forEachKey` from `core.ts`.

```TypeScript
for (var key in settings) {
    if (settings.hasOwnProperty(key)) {
        this.settings[key] = settings[key];
    }
}
````