fix and test the account update method (naive version)