Increase test timeout to 30 seconds
Only request at most as many bytes as are left in the file size.