fix test case about attach file