-1 on pulling this out to a separate file. In general I'm pretty sour on generated tests, but especially if the test data is separated from the small loop around it