Add final newline and fix the test that failed to catch it