added NaN test for get_lp