they don’t have the resources to test drugs they produce
They did not produce these drugs.
The cough syrup that poisoned all the kids in The Gambia was made in India.
The poisonous 'Naturcold' cough syrup in the article, was labelled produced in United Kingdom but turns out the company name on the paperwork and boxes is fake.
I don't think the answer is "if you don't have testing resources then stop allowing medicine to enter your country". That would lead to even more suffering and death.