TST: fix non-running tests for stats.itemfreq.

TestCase subclasses don't work with test generators.