Add test for #999