add test for issue #2629