Allow typecheck tests to specify a failure regexp.

The regexp checks against the exception error message.