The device-driver error test pins that the exception propagates unwrapped and
that the partial output is an exact prefix of the device. The cancellation test
does the same for coroutine cancellation and checks that the flow closes its
BlockDeviceInputStream. A third test pins that the output and existing prefix
streams are left open, and a fourth pins the digest hex formatting with a known
SHA-256 vector.