I am sorry but I don't understand your first sentence.
But why is it not a risk? Can you explain that for me please so that I can find peace in my mind again.
HIV can't infect outside of the body. There is no way you can get infected in the manner you described here, there is no scope of transmission whatsoever, it has never happened in the history of this disease and you certainly won't be the first one.
Your fear is irrational, please move on from this worry. No risk. You don't need to test.
Not a risk because you didn't have a fresh gapping wound that came in contact with infected fluid nor can the body fluid retain it's infectiousness once exposed to environment.
Now that your question is answered, you should also consider seeing a counselor because the thought that this other person is HIV positive is a mere assumption and this is where your anxiety is fed from. Please move on. We have established that you didn't posses any risk from this event and there is nothing more to discuss.