I have never heard of sexually transmitted infections (STI) or HIV passing this way. There would be no need to go for a test from this situation.
It is great that you are washing your hands as that is the best way to reduce the chance of getting other types of viruses like the common cold or flu.
I don’t know your full history or personal situation but if you find that you worry about getting STI or HIV it may be worthwhile talking with a health professional. Worrying about STI and HIV can cause stress to the body and there are different techniques that can help with this. If this sounds like your situation let us know if you need assistance finding a health professional that can help with this.
Please leave a comment to let us know if this answers your question or if you need more information.
For other readers, please feel free to leave a comment, or let us know if this was helpful.