I think if you had an STD, the doctor who gave you the pills before would have told you. Stop stressing (I know it's hard), get tested, and please let us know how it goes! Good luck :)
Stop freaking out, go get tested tomorrow, and then don't worry about it unless you hear something negative.