Added regression test for GitHub issue #30.