fix detele_a_file wrong exception
fix test: tiping error
add case to detele_a_file method for improve coverage