Samples of urine may also be tested. This can rule out a urinary tract infection. Health care providers may also order a pregnancy test for women.