Security groups unit tests

Change-Id: Idbd33a99db908a190f3f86994ebea1e329b25f57