Add test case for SEGV fixed in pull request #134