Add test for validating the number of fields in the input CSV files.
Replace line parsing with csv parser from standard module csv.