Updated rspec tests to take security group related flow in context