Spec for issue #865.