use value and AfxParse unittest passed .
 refactor