Test ApiError class