add account.update and corresponding unit test
add account.update and corresponding unit test