Fixed mistake in cacheMatrix(); Extended tests