Moved xfail code to before failure-inducing code.