diff --git a/master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py b/master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
index e9cad4c1cd9a46cb7e06da6fb48b0e0682cf5f6e..cb1b48d09b8062795a214a8933e70f300f5f8d01 100644
--- a/master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
+++ b/master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
@@ -162,6 +162,22 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
     self.assertSameSet(['R-INSTANCE', subscription_reference],
       user.getGroups())
 
+    # check project security group
+    self.login()
+    project = self.addProject()
+    instance.setFollowUpValue(project)
+    self.tic()
+
+    # clear cache in order to reset calculation
+    self.portal.portal_caches.clearAllCache()
+    self.login(user_id)
+    user = getSecurityManager().getUser()
+    self.assertTrue('Authenticated' in user.getRoles())
+    self.assertSameSet(['R-INSTANCE', subscription_reference,
+                        project.getReference(),
+                        '%s_R-INSTANCE' % project.getReference()],
+      user.getGroups())
+
   def test_inactive(self, login_portal_type="Certificate Login"):
     user_id = self._generateRandomUniqueUserId(self.portal_type)
     reference = self._generateRandomUniqueReference(self.portal_type)