A statistical framework to estimate diagnostic test performance for COVID-19