fix long stream test generation