Issue #14700: merge tests from 3.2.