Welcome to the HIV forum. Bottom line: No risk, don't worry about it.
HIV is less easily transmitted than a lot of people assume. Without an overt, bleeding wound, there is no way that HIV infected secretions on intact skin -- even recently shaved -- could result in transmission of the virus. You don't need testing and needn't worry about this at all.
Regards-- HHH, MD