add failing test case for #383

This makes it even easier to see the bug, and will help avoid regressions.