Testing and fixed AppError