Test an error