Added newline delimeter and a test for it