Added getRoles from group function
Test fixed