fix download file format error bug
add new test