Test/document stream class