test case for fix of issue #20645