add missing test case for Issue 8966

It was in my files but not part of the repository.

fix http://d.puremagic.com/issues/show_bug.cgi?id=8966