Make JUnit test fail on NaN