Added regression test for GitHub issue #28.