TST: Added test for Excel writers with duplicated column names.

Test and fix for issue #5235