Testing can be useful in patients with a history of allergy to antibiotics when the alternative treatments are limited.