The only risks for HIV in adults are:
1) Having unprotected anal or vaginal sex, or
2) sharing intravenous needles with IV drug users.
There isn't any other situation that you can think of that would put you at risk for HIV. A penis touching a vagina without actual penetration is NOT the same as having intercourse. There is no detail that you can add to this event that would make it a risk for HIV - you had zero risk, and you don't need a test.
I don't know what is causing your medical symptoms, but they aren't related to HIV since you were never exposed to HIV. This forum is only for HIV - you can ask your STD questions here: https://
www.medhelp.org/forums/STDs-STIs/show/98, but there is no need to ask again about HIV from this event.