I wanted to ask what are the laws of abortion. There are tests done which can show fetal abnormalities, is abortion allowed? Even if the ruh hasnt entered the fetus?

Abortion isnt allowed unless theres a very detrimental reason and life and death situation. Even then you need to refer to your Marja Taqleed