security group reference replacement across cells and unit tests