add tests as in commit f2614e79574094c684c8bb8423431ef7e09bf717 in test-csv