CLEANUP: Now all tests uses NA_real_ instead of as.double(NA).