Fixed the last else clause for comma and newline split
Added test only with newline test