refined tests for OneHotFormatter and csv_dataset.py