Spec to exemplify issue #497

Regression test for issue #497