Tweaked the test for a null matrix in getInverse(); the default argument to the factory function yields
a 1x1 matrix with value NA, not a NULL.