The test is typically ordered by a healthcare provider when a person exhibits symptoms of a fungal infection, such as cough, fever, shortness of breath, and chest pain, especially if they have a history of lung disease or a compromised immune system. The test may also be requested if the person has been exposed to someone with a fungal infection or has traveled to an area where fungal infections are common.