As the new coronavirus spreads around the world, governments are grappling with a difficult question: Who should be tested?