Is there any medical test to know that unmarried girl has aborted before marriage?

No. There is no way to see if she has had a termination or been sexually active. If you plan to marry her you should trust her. Trust is one of the basis for a good marriage.