added test for #7985