Test updating the email code