update
add testcase and fix bug and add config