The test is used to check for the type of HPV that can lead to cervical cancer. It is often done at the same time as a pap smear, a procedure that checks for abnormal cells that can also lead to cervical cancer. When an HPV test and a pap smear are done at the same time, it's called co-testing.