Added basic security groups test

Added first test of the security groups, with the associated logic inserted into the builder.