multivariate normal error checking and testing

Extra error checking, and random number seeds for tests.