make csv tests less simple
refactor tests