Added mail helper methods to tests