pneumonia diagnostic tests