inputcsv done and add some tests