diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm
index 2d6ad9d232b7ce53f24e95d13206b29db0030ee1..49ffda6566f7e129690538c0c6ed0f92110d1c86 100755
--- a/lib/IdPAccountManager/WebRequest.pm
+++ b/lib/IdPAccountManager/WebRequest.pm
@@ -481,7 +481,7 @@ sub req_validate_token {
     ## create test accounts
     my @test_accounts;
 
-    foreach my $profile ($self->{configuration}->{account_profiles}) {
+    foreach my $profile (split(/, */, $self->{configuration}->{account_profiles})) {
         my $test_account = IdPAccountManager::Data::TestAccount->new(
             db              => $self->{db},
             account_profile => $profile,