updated tests for mail