Fix minor bug in CsvParser. Add test for bug.