add --hash-by-class

Implements #2.

(This is the first time I've used `PluginTester` -- it's pretty nifty! You might want to refactor your other tests to use it).
I changed TC2 and TC3 to not inherit from TC1 to avoid inheriting parent test methods.