fix to pass chunked streaming test