This test could be better written using a test generator, though I seem to recall that test generators for some reason don't work within classes.  Does anybody know about that?