Add test for #1121