add tests for streaming