TST: Test to_csv in more cases and faster