Thank you for your inquiry. From what we gather from the question, you were asking about the possibility of HIV transmission in the event that you had touched your baby's anus with potential damage or wounds on the skin of your hand.
From the information given, this scenario is determined to be No Risk (Transmission of HIV is not possible in the given scenario). Superficial cuts do not provide sufficient blood flow, especially if they are not fresh, or are simply not deep enough to release a large amount of blood. HIV transmission requires direct access to the blood stream. In this circumstance, there does not appear to be a deep enough wound for there to be a risk of transmission to your baby.
HIV transmission would likely be more of a risk in the event that both you and your baby had open and bleeding wounds, that came into direct contact with each other.
Recommendation: No need for HIV test with the scenario provided, please refer to a health care professional for any related questions.
Regards, AIDS Vancouver Helpline/Online, Saro Mulisa