Fixed attachment render typo.
Extended mail attachment testing.