testing errors by email