Every cosmetics company must have a licence with all the information about the manufactured beauty products. If you tend to buy a small quantity of products for personal usage, than the cosmetics is not tested. In the cases, when he exports are focused on a large number of customers ( in shops, markets, open markets) the cosmetics has to be tested according to the country international import/export standards.
If the cosmetics company got the license in its country, it is also verified in the exported company, basically once and then it is just imported as a trusted product. If it is a product you see first time, verify it please in all the possible ways, it may be a fake product and harm you. But usually a specialized shop or a drugstore is more of a trust.