use size instead of time for download test
Configure to use file or stream for download