tests written for account.rb