Allergy testing may help to identify what caused a person’s anaphylaxis. Skin allergy tests (such as patch tests) can be done for certain foods and venoms. Skin tests can diagnose an allergy to penicillin, but there are no skin tests for other medications. Blood tests can diagnose milk, egg, peanut, tree nut and fish allergies.