Would the judge give you a second chance to get a paternity test done?

Depends on the nature of the case. Your lawyer would be the best person to advise.