Test the underscore extension functions for CSV

Fixed several bugs in the CSV parsing.