Toxicity testing using microorganisms