Added example as regression test for issue #8