As you had unprotected sex, even if it was brief, you've been exposed to a wide variety of STDs. My advice is to test as follows:
-3 weeks after the exposure, for gonorrhea and chlamydia.
-6 weeks after the exposure, for syphilis.
-3 months after the exposure, for herpes.
Regarding syphilis, if your test gives you a negative result, repeat it 3 months after exposure, as sometimes people infected with syphilis take longer to give a positive result.
Regarding HIV, the window period will be different depending on the kind of test you go for:
-If you go for a normal antibody test (finger-prick) it will be accurate 3 months after the exposure.
-If you go for a duo combo ag/ab test, it will be accurate 28 days after the exposure.
All the best.