Add test for #3279