Add test case for issue #42