fixed extra newline test