csv reader with test cases