test sendError