spec for issue #793