tests for streaming json