Control of a multigroup COVID-19 model with immunity: treatment and test elimination