Added regression test for issue #5.