add some tests for AppError