fix SetTest failed when call Error