Add test for issue #42