Add test for issue #372