email sent test now relies on a mock