Tutorial for testing HTTP Responses and emitted events in Node.js