very confused

Zuleymaaaaa
Okay, soo My last period was 12/01/16. After that I never got my period.. but everytime I tested in Jan it would always be negative just this past weds. 02/22 I was experiencing cramping in my uterus so I went to the doctor since I was also worried that i Havent gotten my period & they told me I was pregnant! So according to my last period they said im 12 weeks.. Before this appt I never had a blood test. Does anyone know why all test were negative till just now?