Check failed expected exception