update tests to use csv handler class