getAccounts test improved