2 ladies, 1 man

Wow, do I have a predicament on my hands. Let me start by saying I was in a relationship. He started out great. 5 months later, I have finally come to the conclusion that he just isn't mature enough for me. I still love him but I break things off. It kinda got messy because I was feeling kinda territorial after still and hated seeing him out with other women(who were old,friends of his btw,and I knew this). A few months go by and we start hanging around each other again. One thing leads to another and he's back at my place, rocking my world like he used to. We do this for a few weeks and then he tells me he is back with an ex from years ago. His high school sweetheart(kill me now!!) So, we stop our little arrangements which hurts me as much as I didn't want to admit it because I broke up with him ya know. A month or so goes by and they break up. He was sad, I decided to let him in again. And one thing led to another and IT happened again.... (ik ladies, I'm also shaking my head at myself ) So he decides I don't know what I want and he wants to try to work things out with her because I'm hot then cold and it's confusing. Two days after we had sex he tells me she is pregnant. Literally killed me. So, I'm hurt and angry and confused and I obviously want him in my life , even with all the mess because I never stopped loving him. that was 3 weeks ago. I should have gotten my period last week and I'm still waiting.......I'm a single mom of a beautiful 9 ur old little girl. and I'm freaking out that he got us both pregnant. I'm almost 30 and have been feeling like my biological clock is ticking so I do want to be a mom again, but definitely not in this situation. Is it too early to take a test? And if I do, and I am ,do I tell him?