Refactor test file defs.
The 'repeat' of a segment is really max_use.