fix stream test