Add extra test to ensure error object propagates to 'error' event