Paternity tests are not banned in France. At will, secret, testing is banned. Parents can get court orders if they want a paternity test.
The US is similar: although there are kits you can buy off the shelf the results are for personal knowledge only and can't be used in legal proceedings. If you want to use a paternity test in court you need a court ordered paternity test from an accredited lab.