There is no need for paternity test if the household registration has a birth certificate. At present, the country has standardized the household registration management, requiring newborns to go to the local police station for household registration within a certain period of time (generally about 2-3 months, with slight differences in different regions). If the time limit is exceeded, some areas need to re-do the paternity test to confirm.
If the parents' information on the birth certificate is inconsistent with the parents' identity information, such as name, gender, ID number and other errors. At this time, it is necessary to do paternity test.