HIV is transmitted through:
-Unprotected vaginal/anal penetrations.
-Sharing needles to inject drugs.
-Mother to child.
You didn't do any of those things, so you were never exposed to HIV. As you didn't have any risk, no test is needed.
All the best.