For the digital people, building a ring oscillator with N stages will cause the output to divide by N, and just make sure that f/N is in the range of your oscilloscope.
To actually measure things up in the THz range directly, there are more exotic methods: Superconducting bolometer is one that I've been involved with. But those are a PITA for a bunch of reasons.
I wonder how you even test a 1THz amplifier. Also what kind of natural noise might exist in those bands