Add tests for streaming.