Corrected csv tests with bugs and made them compatible with the csv standard