TST: fix test to test dupe columns, instead of null op
BUG: to_csv should allow writing of dupe cols if within same block GH3095

closes #3095