unit test for update_account