The Macroeconomics of Testing and Quarantining