regression test for issue #6