In the race to get a handle on the pandemic, a number of tests are now in use around the world. But how do they work?