simplify a test generator
remove trailing whitespace at end of file