Add proper test-case for for ddoc escape system.
Merge pull request #1658 from AndrejMitrovic/Fixup9369

Add proper test-case for for ddoc escape system.