Adding failing test for #2694

Fixes #2701