Add validate method and corresponding tests to CSVFormatSpec