Test: added regression for issue #872.