Separated out the NaN test
Added NaN tests to Makefiles