ErrorHandler tests