Attempting to add test.
Added checking for cov[0,1]==nan.