Add test to exercise the crash reported in issue #3