TST: unit test for #3503
Merge pull request #3694 from pydata/PR-test-3503

Test to verify/fix behavior in #3503