You have no reason to worry. Before I address your concern, please let me try to address a piece of misinformation you seem to have. A person cannot get HSV-1 (cold sores) from sharing a glass with a person who has a cold sore. This is an urban myth.
As for the chance that you may have gotten HSV-2 from masturbating your partner and then masturbating yourself with the same
handHand or foot spasms
Hand tremor, they are close to zero. Despite the theoretical concern, this
simplySimply sleep does not happen. The herpes virus is sensitive to drying and the environment and dies quickly following removal from the body.
You have no reason to worry and do not need testing. With respect to the theoretical concern that you could be the "1 in a million" if you do not develop lesions suggestive of herpes (small uncomfortable blisters) within 10 days of exposure you can be confident that you did not get herpes from the activities you describe. I am confident that this is the case right now.
Hope this helps. EWH