Refactored AccountsProviderTest