Tests at 5 months pregnant

So I've been told they stick a huge a$s needle in your stomach to get fluid from the placenta is this true? What is the test even for? Should I get it if I jump at needles going in me? What if I jump and it hurts my baby?