Test for issue #2881