Add test for #3008