tests: fix test case for stream client