additional test for transforming to OutputStream