First, the stats for UNPROTECTED anal sex, it is approx 1 in 100, but that is irrelevant in your situation.
Your encounter posed absolutely NO risk to you whatsoever, as it falls into the category of mutual masturbation, which never leads to transmission. Of course during these types of activities, it is totally normal to have exchange of genital secretions...that doesn't pose any risk. Also, the presence of small cuts, abrasions does not cause a risk either. In order for transmission to occur, unprotected anal or vaginal sex is necessary.
So, in a nutshell (no pun intended, lol)...you had no risk with no need to be tested, or to worry at all.
just to add on, 2 weeks after this incident I got the flu, was very sick and am just beginning to feel better. From reading this forum, I know the flu is not a indicator of HIV infection, escpecially since it is flu season.
Also, the other thing I wanted to ask was that I was reading around the boards and I read somewhere, that there is a 1 in 10000 chance of getting HIV if you were the reciepient of anal sex with an infected top. I am not too sure if this is true or if I misinterpreted what I read so please clarify. Thanks