Long awaited test case for #2355.

Fix #2355.