MULE-7664 Allow size of internal buffer used for copy streams to be customized

Improve test method