Yes, it
is possible to test for herpes in males or females, either through direct
culture for the virus if a blister is present or by blood test. Neither type
of test is 100% accurate though and can give false negatives and false
positives. Visually we can provide a diagnostic impression about the cause
of genital/anal bumps. The most common causes are warts (Human Papilloma
Virus) and Molluscum Contagiosum (viral) especially if they are not painful.
Folliculitis is also likely if you've been shaving.
So an
examination is reasonable and part of that is a discussion of testing for
other STDs, depending on your risk factors, including reducing risk with
condom use.