Optimal control problem arising from COVID-19 transmission model with rapid-test