Adds a basic test for TextStream and more specific doc