Your health care provider will also test you for STIs. A sample of urine may be tested to rule out a urinary tract infection. Your urine may also be tested to make sure you are not pregnant.