Add test for #1050