Update the following sentence to remove all of the grammar flaws:
Moreover, the drugs have to be tested so as to ensure the effectiveness of the medicine and are safe for consumption.
Moreover, the drugs have to be tested so as to ensure the effectiveness of the medicine and that they are safe for consumption.