No risk in the scenario you mentioned cause the condom dint break apart,theres really no need to test and if u decided to test the result will be negative based on that scenario.
Please see a GP for your ailments, they are unrelated to HIV, condoms are sufficient to protect against transmission of HIV. You weren't at risk. Testing is not necessary.
HIV is only transmitted by unprotected vaginal or anal sex or sharing IV drug needles. You used a condom and as long as your head of our penis was covered, there is no risk whatsoever.