A special test called an amniocentesis may also be used to see if the baby has certain NTDs. For this test, a small sample of amniotic fluid surrounding the baby in the womb is taken. The fluid is then checked for birth defects and genetic problems.