There's a wonderful book called No Magic Bullet by Allan M. Brandt that discusses how rates of syphilis and other STIs rose after there were effective treatments.
To your comment, I'd at least say there's evidence that treatments to previous STI epidemics hasn't caused the downfall of humanity, and so a vaccine or treatment for HIV/AIDS likely won't either.
Does the book account for the effect of more people undergoing testing once there was an effective treatment? If there's no effective treatment, testing mostly benefits others.