fixed broken mail test