Senator testifies to being 'slut-shamed'