Add proper test-case for for ddoc escape system.

http://d.puremagic.com/issues/show_bug.cgi?id=9369

This is a fixup of the test-case in https://github.com/D-Programming-Language/dmd/pull/1541 which only had a regression test and was wrongly written.