Can you check the human-tasks tests, I remember that there are some tests checking that particular situations. If you don't find any we will need to create them, but as far as I remember there were some test around the group assignments.
https://github.com/droolsjbpm/jbpm/tree/master/jbpm-human-task/src/test/java/org/jbpm/task/service/
Cheers