If you masturbate within a couple of hours of your workout it might effect it, but it should not otherwise. I don't believe it's the drop in your test levels as much as an orgasm causes your whole body to relax. I had a gf once that always wanted to fuck about an hour before I went to the gym, I was on test but it still ruined me in the gym.