The controversial pesticide testing on 36 beagles at a Michigan laboratory has come to an end, the Humane Society of the United States and the company that sought the testing announced Monday.

The decision came less than a week after the Humane Society released the results of an undercover investigation of the Charles River Laboratories in Mattawan.

Corteva Agriscience, a division of DowDuPont, said that Brazilian authorities granted its request for a waiver of the test. Corteva contracted Charles River for the testing.

"We have immediately ended the study that was the subject of attention last week and will make every effort to rehome the animals that were part of the study," the company said on Twitter.

More:Animal cruelty charges filed in case of 53 dogs taken from Sterling Heights home

More:Taylor woman's teacup Yorkie stolen, auctioned at Dearborn Heights bar

The Humane Society cheered the news.

"We applaud Dow AgroSciences (Corteva AgriScience) for making the right decision by ending the one-year pesticide test on 36 beagles at Charles River Laboratories in Michigan," Kitty Block, president and CEO of the Humane Society of the United States, said. "This is a significant step that is critical to the welfare of the dogs.

"We now urge Corteva to work with us to get the dogs out of the laboratory and to our shelter and rescue partners so that they can be adopted into loving homes.”

The undercover investigation of the lab was conducted from April to August. The dogs were force-fed a fungicide, according to the Humane Society.

The organization publicized the investigation results, including photos and videos, early last week, sparking sympathy and outrage from animal lovers across the country. More than 300,000 people signed an online petition on the Humane Society's website calling for an end to the testing.

Without a reprieve, the beagles would have been euthanized when the test was scheduled to end in July.

In its Twitter statement, Corteva AgriScience said it has been advocating with Agência Nacional de Vigilância Sanitária (ANVISA), the Brazilian health regulatory agency, to amend its requirements for animal testing with pesticides.

Corteva said it has been working for years "to continually refine, reduce and replace animal tests wherever possible."

"Today, we’re pleased to announce our efforts resulted in a waiver & we can stop the study," it said on Twitter.

Details about how and when the beagles will leave the lab have not been finalized.

"We have been in touch with the company to thank them for ending the test and to urge them to work with us and our partners to get the dogs out of the laboratory as soon as possible," Kathleen Conlee, vice president for Animal Research Issues for the Humane Society of the United States, said. "We have not gotten confirmation of next steps from them."

Contact Ann Zaniewski: 313-222-6594 or azaniewski@freepress.com. Follow her on Twitter: @AnnZaniewski.