Recurrent miscarriage testing...

For those of you who have had recurrent (2+) miscarriages and had testing done...

What tests did they do?

If something came back irregular, what was your course of action to fix it? (What meds did you end up having to take?)