Test could detect patients at risk from lethal fungal spores