There is a large pool of blood on the door, the hand directly pressed up, and later found that his hand scratched, I do not know when it was scratched, suspected when opening the door scratched. The blood can be flowing. Is there any risk?
You didn't have any risk so you don't need to test.
Only sex risks are penetrating unprotected anal or vaginal. HIV is instantly inactivated in air (which means it instantly can't infect) so can't infect outside the vagina or anus. It doesn't matter if you or he was cut where you touched each other or if you both were cut, because it is fragile and is not like a cold virus that can be transmitted outside the lungs by coughing.
All this HIV science is 40 years old and well proven over that time so nothing you can add to your situation will make it a risk.