Remove some test code duplication

Use static immutable test data containers with loops instead
of mixins. This makes it easier to debug errors.