Add a base class for certain types of tests
Add a base class for certain types of tests

This is so training data can be reused across classes.
In fact nonsensefilter's test have been using this for quite some time
but this was not committed. Oops!

mozilla/spicedham,mozilla/spicedham