Add test for #760.