fixed issue and add testcase  return null when cached files in folder