HIV testing in babies. If you and your healthcare team know that you have HIV, your baby will be tested at birth to see if he or she has been infected with HIV. This test will be repeated after six weeks and again after twelve weeks.