extra test for GH5684

additional test for https://github.com/pydata/pandas/issues/5684