add tests for event emitter, add Function.prototype.bind polyfill to main test file