Added test cases for #1188
Merge pull request #1328 from Ortuna/link-mail-escape

Added test cases for #1188