Testing for COVID-19: A way to lift confinement restrictions