Add test for issue #348.