fix(tests): style and generator updates

Update style spacing (4 spaces to 2 spaces) and new lines. DRY up code a
bit.

Update testing syntax (assertFiles -> assertFile, assertFiles ->
assert.fileContents)