Add test for issue #882.

This test is a duplicate of #883 as #883 exercise #882 as well.