Test if the exception binding is correct