New test could help prevent food poisoning.