Test case for #1428
Fix #1428