Test for #986.