Document Stream tests