TST: add test for issue #4118