Can past medications still affect a pregnancy test ?

I have been on many different medications for years (not all at the same Time, some more recent then others, but have come off of them) an I was wondering if a long history of your body chemistry being altered can affect a HPT
-they have all been anti depressants, mood stabilizers, anti-anxiety, for mental health issues.