Its also very interesting that if the testUser is a member of the group exampleGroup in Discourse he will be removed from this group after the login (In groups variable the exampleGroup is available in this time).
It seems that Discourse ignores the defined groups in variable groups.
Is there any criteria for the names of the groups?