Added sendError test