Add a test for issue #1934