Test cover stream.drain() on errored stream