added tests for streaming.