The test is requested when a patient exhibits symptoms such as abdominal pain, fever, or elevated liver enzymes, which are indicative of a possible fungal infection in the liver. A doctor may also order the test when a patient has a weakened immune system, has undergone an organ transplant, or is receiving long-term corticosteroid or antibiotic treatment, which increases the risk of fungal infections.