Add test for Issue #3160.