Polishing email test code.