fixes issue #7965

Why this dublicate of above test?