Pretty-print the output of the test generator

This PR changes the output of the test generator so that it is easier to read for humans. It is a totally cosmetic change.