Rewrite fails_with tests as tests for CompilerFailure