add tests for mail generation.