context: add console.trace stub
tests: add event-emitter tests