Adding users to a group automatically after login using a PAS plugin

The plugin only assigns groups for users, but does not create group objects. So, with that plugin you need to first create the groups and then you can dynamically assign users to them.

The error message sounds like the user has been assigned group "test", but because there is no "test" group in Plone, it's ignored.