Add test for #1149