Added test for rendering to a writable stream