improve ufs api. make unit test more stable.