add test case for download retry
add test cases
fix