Hi Michael,

I added a conditional skip for the refine tests if it looks like there's a NaN, let me know if it looks ok.

Thanks, Laurence