Correctly use test.expect_fail.