Clean up some tests, adding newlines at EOF where they're missing.