added test for csv data without delimiter; fixed injected redundant newline