Added regression test for issue #7