fix mail tests