The only risks for HIV in adults are:
1) Having unprotected (no condom) penetrative anal or vaginal sex, OR
2) Sharing IV drug equipment with other IV drug users.
Nothing you did was a risk for HIV. You had zero risk and you do not need to test.
When it comes to sexual activity, the risk for HIV is very clear - no unprotected penetration = no risk.