Trying to test against the csv module.
Better unit test. Fixed segfault and trailing line edge case.