fix mailing test cases