Demographic patterns of HIV testing uptake in sub-Saharan Africa