test/errors: test that _pipeline can return the stream itself