Remove trailing newline from test file