Added unit test for NaN-values.