There is absolutely no risk here.
STIs are transmitted by oral, vaginal, or anal sex, or direct, unclothed genital to genital contact, like heavy rubbing or grinding while naked.
You did none of these things.
STIs are not transmitted by toilets, furniture, drinks, arm touches, etc.
Guilt doesn't equal risk. You don't need to test, and you had no risk.