cheating cycle 😱

My boyfriends ex cheated on him over three times and he found out by reading her diary. She never shared that she cheated on him out of the kindness of her heart. She only admitted to it once he told her he knew. They have a daughter together. I asked how he knows it is his biological daughter since she cheated on him so many times and he said it's because she said she wanted a piece of him and that she was so happy going to the doc appointments. I wonder if she cheated and got pregnant by some other man and decided to randomly ask my boyfriend at the time that she wants a child because he said she kept asking him and begging him. My theory is that she became pregnant and instead acted like the child was my boyfriends so he doesn't stop supporting her. The daughter looks nothing like my boyfriend and instead looks identical to her mom. 
What made me think this is true is that as soon as they broke up his ex stopped taking care of the daughter and neglected her, even went and had a miscarriage with another man. I think that says a lot about her manipulative ass. She knows my boyfriend would take care of a child he thinks is his so she disappeared knowing the baby was in good hands. 
Anyways, I spoke with a few lawyers and one said that the biological father has a legal right to know he has a child. Is that true? I'm asking because the lawyer seemed shuffled so I want to make sure it's accurate. Because if it is then my boyfriend has to take the paternity test so that he's not in any legal trouble if anyone was to find out jay this child may not be biologically his? 
I don't want him to do a Walmart test because those aren't really accurate 
UPDATE: for all of you saying I'm insecure because I said his ex went and had a miscarriage with another man. Those were her exact words not mine. His ex shared that with my boyfriend after her mother shared the story with him. He ran into the ex one day and she told him that she had a miscarriage from her boyfriend and when he said I'm sorry she said that she wanted the miscarriage because her boyfriend is a loser who cannot get a job. She was not sad about it at all. My boyfriend then shared this with me and complained that he cannot believe that she would purposely miscarriage her own child for selfish reasons and that he now understands the type of woman she is because the child she has with him she is neglecting.  Now if I was in her spot an abortion would have been fine but my boyfriend said she couldn't afford an abortion. I asked how can she then afford the medical bills of a miscarriage and he said she's on her mothers insurance. He then went on to show how manipulative she is using her actions and behavior. 
I am not trying to paint an ugly image of her I am trying to share the concept of what he painted her to be to me which baffles me especially that after all of that he believes this is his child without a doubt and wouldn't want to make sure that his ex did not screw him over again. 
Thanks to all of you that had positive suggestions 
I am not jealous about his ex. I want her to be involved in her daughters life because the little girl needs a woman role model. I love the girl but I am a believer that her mother should be involved in her life so the child is raised healthy. I am willing to adopt the girl if anything but her mother continues to ruin my boyfriends life by stripping his everything away from him, abusing him physically and emotionally and all I want is for her to be an adult in an appropriate way. It has nothing with me trying to take his child away. I suggested adopting her because he's worried that if she's not his the mother will try to take her away but legally since he was responsible for her for years he can fight for her custody and he would win because he is shown to be more responsible than his ex. I guess I should have been more clear when I wrote this post because a lot of you are getting the wrong idea of what I want. I want a healthy structured relationship with both of the child's parents being involved and respecting one another instead or harassing, abusing and stealing from each otherÂ