Test streaming api