add missing test case
Merge pull request #2370 from WalterBright/test8966

add missing test case for Issue 8966