Tests for streaming mode working