Added to test to determine the behavior of the BLAS and intialize the me...

...mory as needed to avoid unexpected NaN's.

This is a fix for issue gh-1569
I'm not sure why we put the check here. Do you remember?