Quantifying how tests reduce diagnostic uncertainty