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).