Add a test for COPY from a stream object.