Removing email code from testing scripts