add test cases for issue 10918

http://d.puremagic.com/issues/show_bug.cgi?id=10918