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

Added test cases for #1188
Reverted DataMapper's explicit String to Integer castings. Fixes #1186.