added test case for streaming version