Remove unused code
Add isAccountValid & updateAccount methods
Add AccountTest